package com.example.controller;

import com.example.service.FileUploadService;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class FileController {
    @Resource
    private FileUploadService fileUploadService;
    @GetMapping("/download/custInfo.zip")
    public void download(HttpServletResponse response){
        fileUploadService.export(response);
    }
}
